export function angleText(i: number, num: number) {
  //每个元素的角度
  const everyAngle = 360 / num;
  //文字现在所在的角度
  const currentAngle = i * everyAngle + everyAngle / 2;
  //文字所在模块的所占角度

  if (currentAngle <= 90) {
    return -currentAngle;
  } else if (currentAngle <= 180 && currentAngle > 90) {
    return 180 - currentAngle;
  } else if (currentAngle < 270 && currentAngle > 180) {
    return 180 - currentAngle;
  } else if (currentAngle < 360 && currentAngle >= 270) {
    return 360 - currentAngle;
  }
}
